package com.atguigu.day21.test01;

import java.io.File;
import java.io.IOException;

/**
 * @author fenge
 */
public class Test01 {
    public static void main(String[] args) {
        File file = new File("D:\\testIO");
        file.mkdir();
        File text = new File("D:\\testIO\\1.txt");
        try {
            text.createNewFile();
        } catch (IOException e) {
            System.out.println("文件已存在");
        }
        File file1 = new File("testIO");
        file1.mkdir();
        File txt = new File("testIO\\1.txt");
        try {
            txt.createNewFile();
        } catch (IOException e) {
            System.out.println("文件已存在");
        }
/*            int i =0;
        while (true) {
            String str = "value" + i;
            i++;
            System.out.println(str);
            File txt1241 = new File("testIO\\"+str);
            txt1241.mkdir();
         }*/

    }
}
